package com.yex.service;

import com.baomidou.mybatisplus.service.IService;
import com.yex.common.utils.PageUtils;
import com.yex.entity.InvestmentLogEntity;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 报单订单分享 log
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-01-09 10:32:25
 */
public interface InvestmentLogService extends IService<InvestmentLogEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 某一期的奖励
     */
    BigDecimal selectInvestmentTotal(Integer investmentId,Integer userId);
    /**
     * 直推奖励
     */
    BigDecimal selectIntroUserTotal(Integer userId);

    BigDecimal selectIntroDownTotal(Integer userId);
    /**
     * 所有奖励
     */
    BigDecimal selectIntroTotal(Integer userId);
}

